solve_brent Function

public function solve_brent(fcn, bracket, args) result(x)

Utilizes Brent's method to solve a scalar equation of the form . For more control over the solver it is recommended to utilize the brent_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(fcn1var) :: fcn

The function.

type(value_pair), intent(in) :: bracket

An initial estimate that brackets the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64)

The value of that satisfies within the default solver tolerances.